{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>交班记录</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<form method="post" action="{:url('index')}">
			<div class="form-group" style="padding-left: 20px;">
				操作员 <input type="text" id="mobile" name="mobile" value="" class="bank" />
				时间<input id='start_time' name='start_time'  style="width: 200px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" type='text' placeholder="开始时间" class="bank" />	
				<input id='end_time' name='end_time'  style="width: 200px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" type='text' placeholder="结束时间" class="bank" />
				总收入 <input type="text" id="total_icomes" name="total_icomes" value="" class="bank" />
				 <input type="text" id="total_icomee" name="total_icomee" value="" class="bank" />
				<span class="bank"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
			</div>
		</form>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">				
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th>交班时间</th>
								<th>所属店铺</th>
								<th>总收入(元)</th>
								<th>现金(元)</th>
								<th>微信收入(元)</th>
								<th>支付宝收入(元)</th>
								<th>银行卡收入(元)</th>
								<th>操作员</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="list" item="ad"}
							<tr>	
								<td class="text-center">{$ad.add_time}</td>
								<td class="text-center">{$ad.store_name}</td>
								<td class="text-center">{$ad.total_icome|}</td>
								<td class="text-center">{$ad.cash}</td>
								<td class="text-center">{$ad.wx_icome}</td>
								<td class="text-center">{$ad.zfb_icome|}</td>
								<td class="text-center">{$ad.card_icome}</td>
								<td class="text-center">{$ad.mobile}</td>
								<td class="text-center">
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
					<div style="text-align: right;">
                      {$list->render()}
                   </div>				
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}